package app.netant.bt.btrabbit;

import org.jsoup.select.Elements;

import app.netant.bt.MargnetDetail;
import app.netant.bt.MargnetPage;
/**
 * 页面解析
 * @author JiaJ
 *
 */
public class BtRabbitPage extends MargnetPage {
	
	public BtRabbitPage(String netSite) {
		super(netSite);
	}

	@Override
	public void analyse() {		
		
		Elements activePart = document.select("#wrapper #content #wall .search-item .item-title h3 a");
		
		for(int i=0;i<activePart.size();i++){
			
			String href = "https://www.btrabbit.la" + activePart.get(i).attr("href");
			
			System.out.println(href+"开始处理");
			
			this.analyseHref(href);
			
		}
		
	}

	@Override
	public MargnetDetail buildDetail(String url) {
		MargnetDetail detail = new BtRabbitDetail(url);
		return detail;
	}

}
